using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Comteck.Domain.Entities;

namespace Comteck.Entities.Users {
  /// <summary>
  /// 
  /// </summary>
  [Table("User")]
  public class User : Entity<string> {
    /// <summary>
    /// 
    /// </summary>
    [Key]
    [DatabaseGenerated(DatabaseGeneratedOption.None)]
    public override string Id { get; set; }

    /// <summary>
    /// 
    /// </summary>
    [Required, MaxLength(50)]
    public string Name { get; set; }

    /// <summary>
    /// 
    /// </summary>
    [Required]
    public string Password { get; set; }

    /// <summary>
    /// 
    /// </summary>
    [MaxLength(20)]
    public string Phone { get; set; }
  }
}
